<{foreach item=module from=$modules}>

<{assign var=mid value=$module->mXoopsModule->getVar('mid')}>
<{assign var=dirname value=$module->mXoopsModule->getVar('dirname', 'N')}>
  <{if $module->hasAdminIndex()}>
    <div id="t<{$mid}>" class="head">
      <a href="javascript:void(0)" onclick="ccToggle(<{$mid}>)"><img src="<{"design/max.png"|theme}>" alt="" id="i<{$mid}>" /></a>
      <a href="<{$module->getAdminIndex()|xoops_escape:link}>"><{$module->mXoopsModule->getVar('name')}></a>
    </div>

    <div id="c<{$mid}>" class="submenu">
      <ul>
      <{if $module->getAdminMenu()}>
        <{foreach item=menu from=$module->getAdminMenu()}>
          <{if $menu.show !== false}>
            <li><a href="<{$menu.link|xoops_escape:link}>"><{$menu.title|xoops_escape}></a></li>
          <{/if}>
        <{/foreach}>

          <{if $module->mXoopsModule->getInfo('blocks') && $dirname != "legacy" && $dirname != "altsys"  && $dirname != "system"}>
          <li>
          <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockList&amp;dirname=<{$dirname}>">
          <img src="<{"icons/blocks.png"|theme}>" alt="" title="" />&nbsp;
          <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}>
          </a>
          </li>
          <li>
          <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=BlockInstallList&amp;dirname=<{$dirname}>">
          <img src="<{"icons/block_add.png"|theme}>" alt="" title="" />&nbsp;
          <{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}>
          </a>
          </li>
          <{/if}>
          
          <{if $dirname != "legacyRender" && $dirname != "altsys"  && $dirname != "system"}>
          <{foreach item=tplmodule from=$tplmodules}>
          <{if $dirname == $tplmodule}>			
          <li>
          <a href="<{$xoops_url}>/modules/legacyRender/admin/index.php?action=TplfileList&amp;tpl_module=<{$dirname}>&amp;sort=-9">
          <img src="<{"icons/templates.png"|theme}>" alt="" title="" />&nbsp;
          <{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}>
          </a>
          </li>
          <{/if}>
          <{/foreach}>
          <{/if}>
          
          <{if $module->mXoopsModule->getInfo('hasComments')}>
          <li>
          <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=CommentList&amp;com_modid=<{$mid}>&amp;sort=-8">
          <img src="<{"icons/comments.png"|theme}>" alt="" title="" />&nbsp;
          <{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}>
          </a>
          </li>
          <{/if}>
          
          <{if $module->mXoopsModule->hasNeedUpdate()}>
          <li>
          <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$dirname}>">
          <img src="<{"icons/upgrade.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" />&nbsp;
          <{$smarty.const._AD_LEGACY_LANG_UPGRADE}>
          </a>
          </li>
          
          <{else}>
          
          <li>
          <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleUpdate&amp;dirname=<{$dirname}>">
          <img src="<{"icons/update.png"|theme}>" alt="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPGRADE}>" />&nbsp;
          <{$smarty.const._AD_LEGACY_LANG_UPGRADE}>
          </a>
          </li>
          <{/if}>
          
          <li><a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleEdit&amp;mid=<{$mid}>">
          <img src="<{"icons/module_edit.png"|theme}>" alt="" title="" />&nbsp;
          <{$smarty.const._EDIT}>
          </a>
          </li>
          <li>
          <a href="<{$xoops_url}>/modules/legacy/admin/index.php?action=ModuleInfo&amp;dirname=<{$dirname}>">
          <img src="<{"icons/info.png"|theme}>" alt="" title="" />&nbsp;
          <{$smarty.const._AD_LEGACY_LANG_INFORMATION}>
          </a>
          </li>

		  <{else}>
        
          <li>
          <{$smarty.const._AD_LEGACY_LANG_NO_SETTING}>
          </li>
      <{/if}>
      </ul>
    </div>
  <{/if}>

<{/foreach}>
